/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.giftmemo.objects.impl;

import com.giftmemo.objects.Gender;
import com.giftmemo.objects.Gift;
import com.giftmemo.objects.Person;
import com.giftmemo.objects.TypeOfRelationship;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Egor
 */
public class PersonImpl implements Person {

    private String personName;
    private Date personBirthdayDate;
    private Gender personGender;
    private TypeOfRelationship typeOfRelationship;
    private List<Gift> allGifts;

    public PersonImpl() {
    }

    public PersonImpl(String personName, Date personBirthdayDate, Gender personGender, TypeOfRelationship typeOfRelationship, List<Gift> allGifts) {
        this.personName = personName;
        this.personBirthdayDate = personBirthdayDate;
        this.personGender = personGender;
        this.typeOfRelationship = typeOfRelationship;
        this.allGifts = allGifts;
    }

    
    
    @Override
    public String getPersonName() {
        return personName;
    }

    @Override
    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Override
    public Date getPersonBirthdayDate() {
        return personBirthdayDate;
    }

    @Override
    public void setPersonBirthdayDate(Date personBirthdayDate) {
        this.personBirthdayDate = personBirthdayDate;
    }

    @Override
    public Gender getPersonGender() {
        return personGender;
    }

    @Override
    public void setPersonGender(Gender personGender) {
        this.personGender = personGender;
    }

    @Override
    public TypeOfRelationship getTypeOfRelationship() {
        return typeOfRelationship;
    }

    @Override
    public void setTypeOfrelationship(TypeOfRelationship typeOfRelationship) {
        this.typeOfRelationship = typeOfRelationship;
    }

    @Override
    public void addGift(Gift gift) {
        allGifts.add(gift);
    }

    @Override
    public List<Gift> getAllGifts() {
        return allGifts;
    }

    @Override
    public String toString() {
        return "PersonImpl{" + "personName=" + personName + ", personBirthdayDate=" + personBirthdayDate + ", personGender=" + personGender + ", typeOfRelationship=" + typeOfRelationship + ", allGifts=" + allGifts + '}';
    }

    
    
}
